Skip to content

Add building and container recipes#18

Closed
Simonandy28 wants to merge 4 commits intoSimulation-Software-Engineering:mainfrom
Simonandy28:main
Closed

Add building and container recipes#18
Simonandy28 wants to merge 4 commits intoSimulation-Software-Engineering:mainfrom
Simonandy28:main

Conversation

@Simonandy28
Copy link
Copy Markdown

Build and Running Docker

docker build -t cmake-exercise .
docker run -it --mount type=bind,src=.,dst=/cmake-exercise cmake-exercise

Running the Code

Using build_and_run.sh

Compile with: chmod +x build_and_run.sh

Run: ./build_and_run.sh

If the run command is not possible, try sed -i 's/\r$//' build_and_run.sh and retry running.

Without build_and_run.sh

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make
./main <filePath to Yaml that is to be parsed>

@Simonandy28
Copy link
Copy Markdown
Author

Could not assign myself to the pull request

@Simonandy28
Copy link
Copy Markdown
Author

GitLab Acc: merklesn

Copy link
Copy Markdown

@MakisH MakisH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good here and works, thanks!

WORKDIR /
RUN rm -rf /tmp/yaml-cpp*

ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, LD_LIBRARY_PATH on the right-hand side is undefined at this point.

@MakisH MakisH closed this Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants